//
//  Common.swift
//  WeiBo
//
//  Created by 张德华 on 7/23/16.
//  Copyright © 2016 ZhangDeHua. All rights reserved.
//

import UIKit

/**主题颜色*/
let ThemeColor = UIColor.orangeColor()

/**RGB色*/
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor {
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}

/**随机色*/
func RandomColor() -> UIColor {
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}


/**屏幕size*/
let SCREENSIZE = UIScreen.mainScreen().bounds.size



let appKey = "3406932734"
let appSecret = "0a34371d6541616802589d290cf12454"
let redirectUri = "http://www.baidu.com"



/**通知*/
let WQWeiBoLoginSuccessedNotification = "WQWeiBoLoginSuccessedNotification"



